export const useFormServ = function(){
  const COM_TYPE = {
    SELECT:'选择',
    INPUT:'填写',
    IN:'输入',
    GEN:'系统自动生成...',
    UPLOAD:'上传',
  }

  const b_PLACEHOLDER_STR = function(name_str, type, act = false) {
    const strs = [type !== COM_TYPE.GEN ? "请" : "", type, name_str]
    if (act) {
      strs.push("...")
    }
    return strs.join("")
  }

  return {
    COM_TYPE,
    b_PLACEHOLDER_STR
  }
}
